# Value connection (maintained and multistate)

If the nextStateBasedOn attribute is valueControl, the application reads the assigned tag to determine which state to show next. The application then writes the value corresponding to the new state to the tag’s data source.

A read-write connection. Assign a tag to this connection. To provide visual feedback that the Value connection has been read by the data source, assign different tags to the Value and Indicator connections. Configure the data source to pass the Value connection’s value to the Indicator connection.

The maintainedButton and multistateButton graphic object element have this connection within their connections element.

## See also

connections and connection elements

nextStateBasedOn attribute

Indicator connection